<?php

namespace lh\controller;

use \GatewayWorker\Lib\Gateway;

class Main{
  static function ping($cid){
    $data=['count'=>Gateway::getAllClientIdCount()];
    $result=json_encode(['r'=>'/main/ping','data'=>$data]);
    Gateway::sendToClient($cid, $result);
  }
}